home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / atfork.z / atfork
Encoding:
Text File  |  1998-10-20  |  5.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. aaaattttffffoooorrrrkkkk((((3333CCCC))))                                                          aaaattttffffoooorrrrkkkk((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd, _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd______pppp_rrrr_eeee_pppp_eeee_nnnn_dddd, _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_aaaa_rrrr_eeee_nnnn_tttt, _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_rrrr_eeee - add fork
  10.      pre and post interception routines
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
  14.  
  15.      _iiii_nnnn_tttt _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd _((((_vvvv_oooo_iiii_dddd _((((_****_ffff_uuuu_nnnn_cccc_))))_((((_vvvv_oooo_iiii_dddd_))))_))))_;;;;
  16.  
  17.      _iiii_nnnn_tttt _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd______pppp_rrrr_eeee_pppp_eeee_nnnn_dddd _((((_vvvv_oooo_iiii_dddd _((((_****_ffff_uuuu_nnnn_cccc_))))_((((_vvvv_oooo_iiii_dddd_))))_))))_;;;;
  18.  
  19.      _iiii_nnnn_tttt _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_aaaa_rrrr_eeee_nnnn_tttt _((((_vvvv_oooo_iiii_dddd _((((_****_ffff_uuuu_nnnn_cccc_))))_((((_iiii_nnnn_tttt _eeee_rrrr_rrrr_nnnn_oooo_,,,,_iiii_nnnn_tttt _pppp_iiii_dddd_))))_))))_;;;;
  20.  
  21.      _iiii_nnnn_tttt _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_rrrr_eeee _((((_vvvv_oooo_iiii_dddd _((((_****_ffff_uuuu_nnnn_cccc_))))_((((_vvvv_oooo_iiii_dddd_))))_))))_;;;;
  22.  
  23. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.      _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd adds the function _f_u_n_c to the end of a list of functions to
  25.      be called without arguments on entry of a child process created by
  26.      _ffff_oooo_rrrr_kkkk(2).  _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd______pppp_rrrr_eeee_pppp_eeee_nnnn_dddd performs the same task, but it adds the
  27.      function at the beginning of the list.  At most 32 functions may be
  28.      registered by _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd or _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd______pppp_rrrr_eeee_pppp_eeee_nnnn_dddd.  The functions will
  29.      be called in list order.
  30.  
  31.      _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_aaaa_rrrr_eeee_nnnn_tttt adds the function _f_u_n_c to a list of functions to be called
  32.      with two integer arguments after calling _ffff_oooo_rrrr_kkkk(2).  At most 32 functions
  33.      may be registered by _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_aaaa_rrrr_eeee_nnnn_tttt; the functions will be called in the
  34.      same order as their registration.
  35.  
  36.      _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_rrrr_eeee adds the function _f_u_n_c to a list of functions to be called
  37.      without arguments just preceeding a call to _ffff_oooo_rrrr_kkkk(2).  At most 32
  38.      functions may be registered by _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_rrrr_eeee; the functions will be called
  39.      in the reverse order as their registration.
  40.  
  41.      _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd, _aaaa_tttt_ffff_oooo_rrrr_kkkk______cccc_hhhh_iiii_llll_dddd______pppp_rrrr_eeee_pppp_eeee_nnnn_dddd, _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_aaaa_rrrr_eeee_nnnn_tttt, and _aaaa_tttt_ffff_oooo_rrrr_kkkk______pppp_rrrr_eeee all
  42.      return 0 if the registration succeeds. Otherwise, a value of -1 is
  43.      returned and _e_r_r_n_o is set to indicate the error.
  44.  
  45.  
  46. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  47.      _ffff_oooo_rrrr_kkkk(2).
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.